// 命名视图components
export default [
  {
    path: '/components',
    component: () => import('@/views/components/Components.vue'),
    children: [
      {
        path: '',
        components: {
          // key与<RouterView>上的name属性相匹配，无name属性默认default
          default: () => import('@/views/components/ComponentsChildrenDefault.vue'),
          ComponentsChildrenA: () => import('@/views/components/ComponentsChildrenA.vue'),
          ComponentsChildrenB: () => import('@/views/components/ComponentsChildrenB.vue'),
        }
      }
    ]
  }
];